<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Yolo Admin</title>
    <link rel="stylesheet" type="text/css" href="/css/common.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script> var yoloXsrfToken = '{{.XsrfToken}}'; </script>
    <script src="/scripts/yolo.js" type="text/javascript"></script>
  </head>
<body style="font-size:12px">

<h1>Yolo Admin - Issues</h1>

<div id="ajax-result" class="ajax-result hide">
  <p id="ajax-result-body"></p>
</div>

<a href="/admin">Admin top</a>

<h3>Issues</h3>

{{if .Issues}}
<p>
Showing: <a href="/admin/issues?offset=0">0-</a> |
{{.From}}-{{.To}} |
<a href="/admin/issues?offset={{.Next}}">{{.Next}}-</a>
</p>
{{end}}

{{range .Issues}}
<p>
<b>Issue <a href="/admin/issue?issue={{.SiteURL}}%2F{{.IssueId}}">{{.SiteURL}}/{{.IssueId}}</a></b>: {{.Subject}} (closed: {{.Closed}})
<ul>
	<li><b>Owner:</b> <a href="/admin/user?email={{.OwnerEmail}}">{{.OwnerEmail}}</a>
	<li><b>Subject:</b> {{.Subject}}
	<li><b>Created:</b> {{date .Created}}
	<li><b>Modified:</b> {{date .Modified}}
	<li><b>Bugs:</b>
	{{range .Bugs}}{{.}}{{end}}
	<li><b>Commit:</b> {{.Commit}}
</ul>
</p>

{{else}}
No issues found.
{{end}}

  <script src="/scripts/yolo-admin.js" type="text/javascript"></script>
</body>
</html>
